package game.asset
{
	import away3d.containers.*;
	import engine.asset.*;
	import engine.core.*;
	import engine.loaders.*;
	import flash.net.*;
	import flash.system.*;
	import game.actor.*;
	import game.network.*;
	import game.scene.*;
	
	public class RxAssetLayout extends RxAsset
	{
		private var m_xml:XML;
		private var m_checkedOut:Boolean;
		private static var s_type:int;
		
		public function RxAssetLayout()
		{
			super(s_type);
			this.m_xml = null;
		}
		
		public static function Initialize() : void
		{
			s_type = RxAsset.RegisterType("layout", CreateFromXML);
		}
		
		public static function CreateFromXML(param1:XML, param2:String) : RxAssetLayout
		{
			var _loc_3:* = param1.@name;
			var _loc_4:* = param1.@url;
			_loc_4 = RxUtilities.MergePath(param2, _loc_4);
			return Create(_loc_4, _loc_3);
		}
		
		public static function Create(param1:String, param2:String) : RxAssetLayout
		{
			var _loc_3:* = GetByURL(param1);
			if (_loc_3 != null)
			{
				var _loc_4:* = _loc_3;
				var _loc_5:* = _loc_3.m_references + 1;
				_loc_4.m_references = _loc_5;
				return _loc_3;
			}
			_loc_3 = new RxAssetLayout;
			_loc_3.SetURL(param1);
			_loc_3.SetName(param2);
			return _loc_3;
		}
		
		public static function GetByURL(param1:String) : RxAssetLayout
		{
			return RxAssetLayout(_getByURL(param1, s_type));
		}
		
		public static function GetByName(param1:String) : RxAssetLayout
		{
			return RxAssetLayout(_getByName(param1, s_type));
		}
	}
}